---
layout: "default"
title: "withUnsafePointers"
description: "Swift documentation for 'withUnsafePointers': Like withUnsafePointer, but passes pointers to arg0 and arg1."
keywords: "withUnsafePointers,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func-withunsafepointers-a0-a1-result_-inout-a0_-inout-a1_-noescape-unsafepointer-a0-unsafepointer-a1-throws-result">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withunsafepointers-a0-a1-result_-inout-a0_-inout-a1_-noescape-unsafepointer-a0-unsafepointer-a1-throws-result">func withUnsafePointers&lt;A0, A1, Result&gt;(<wbr>_:<wbr> inout A0, _:<wbr> inout A1, _: @noescape (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;) throws -&gt; Result)</a>
        
<div class="comment collapse" id="comment-func-withunsafepointers-a0-a1-result_-inout-a0_-inout-a1_-noescape-unsafepointer-a0-unsafepointer-a1-throws-result"><div class="p">
    <p>Like <code>withUnsafePointer</code>, but passes pointers to <code>arg0</code> and <code>arg1</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withUnsafePointers&lt;A0, A1, Result&gt;(_ arg0: inout A0, _ arg1: inout A1, _ body: @noescape (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;) throws -&gt; Result) rethrows -&gt; Result</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-withunsafepointers-a0-a1-a2-result_-inout-a0_-inout-a1_-inout-a2_-noescape-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withunsafepointers-a0-a1-a2-result_-inout-a0_-inout-a1_-inout-a2_-noescape-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result">func withUnsafePointers&lt;A0, A1, A2, Result&gt;(<wbr>_:<wbr> inout A0, _:<wbr> inout A1, _:<wbr> inout A2, _: @noescape (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;, UnsafePointer&lt;A2&gt;) throws -&gt; Result)</a>
        
<div class="comment collapse" id="comment-func-withunsafepointers-a0-a1-a2-result_-inout-a0_-inout-a1_-inout-a2_-noescape-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result"><div class="p">
    <p>Like <code>withUnsafePointer</code>, but passes pointers to <code>arg0</code>, <code>arg1</code>,
and <code>arg2</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withUnsafePointers&lt;A0, A1, A2, Result&gt;(_ arg0: inout A0, _ arg1: inout A1, _ arg2: inout A2, _ body: @noescape (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;, UnsafePointer&lt;A2&gt;) throws -&gt; Result) rethrows -&gt; Result</code>
    
    
</div></div>
</div>
